layui.use(["form", "ax"],function () {
    var form = layui.form;
    var $ax = layui.ax;
    var admin = layui.admin;

    // 表单提交事件
    form.on('submit(btnSubmit)', function (data) {
        var ajax = new $ax(Feng.ctxPath + "/terminalCtrl/smsSend/sendBlankSms", function (data) {
            Feng.success("发送成功！");
            //关掉对话框
            admin.closeThisDialog();
        }, function (data) {
            Feng.error("发送失败！" + data.responseJSON.message + "!")
        });
        ajax.set(data.field);
        ajax.start();
        //添加 return false 可成功跳转页面
        return false;
    });
});